<?
/**
* Copyright (c) 2002-2007 BioWare Corp.
* http://www.bigdaddymonitor.org
*
* This file is part of the BigDaddy Monitoring
* program. It is free software distributed under
* the terms of the BSD License. It is ditributed
* in the hopes that it will be useful, but
* WITHOUT ANY WARRANTY; without event the implied
* warranty of MERCHANTABILITY or FITNESS FOR A
* PARTICULAR PURPOSE.
*
* The BSD License is available from:
* http://www.opensource.org/licenses/bsd-license.php
**/

if ($Content->sStatic)
{
    include($Content->sStatic);
}
?>

<div id="theme_content" style="

<?
if ($Content->bNoScroll)
{
    echo "overflow: hidden;";
}
?>
">




<div id="theme_content_inside" style="
<?
if ($Content->bNoPadding)
{
    echo "padding: 0;";
}
else
{
    echo "padding: 10px;";
}

?>
">

<?

if ( ($displayParams["sBody"]!="") && (!$displayParams["bIsPreview"]) )
{
    echo $displayParams["sBody"];
}

// PHP hack wiki pleae change later

if ($displayParams["aFormDisplay"]["bShowFormTag"])
{
    //require(CP_THEME_COMMON_2006."/php/edit.php");
}

    switch ($displayParams["sPageType"])
    {
        case "edit":
        case "simpleform":
            $sClass="wiki_content";	
            require(CP_THEME_COMMON_2006."/php/edit.php");
            break;
        
        case "search":
            require(CP_THEME_COMMON_2006."/php/search.php");
            break;
        
            
    }

?>
